#include<stdio.h>
#include<stdlib.h>

int *array;
int size=0;

append()
{
        int num;
        array=realloc(array,sizeof(int)*size+1);
        printf("enter a number");
        scanf("%d",&num);
        array[size]=num;
        size++; 
}

main()
{
      array=(int*)malloc(size * sizeof(int));
      int n;
      printf("enter a number\n");
      scanf("%d",&n);            
      switch(n)
      {
               case(1):
                       append();
                       break;
      /*         case(2):
                       count();
                       break;
                       */
}
return 0;
}
